package com.example.his.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@ServletComponentScan
@EnableAsync
@ComponentScan ( "com.example.*" )
@MapperScan ( "com.example.his.api.db.dao" )
@EnableCaching
public class HisApiApplication {

  public static void main( String[] args ) {
    SpringApplication.run( HisApiApplication.class, args );
  }

}
